package yueyong.salarymanagement.module.business.salary.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Comparator;
import java.util.List;

/**
 * Copyright: yueyong (c) 2022
 *
 * 上传完excel返回excel内容信息
 *
 * @author he.shaorong
 * @version 1.0
 * @date 2022/2/4
 */
@Data
public class EmployeeSalaryDataVO {
    //列信息
    @JsonProperty("salaryData")
    public List<ItemData> salaryData;
    // 员工ID
    private long employeeId;


    public EmployeeSalaryDataVO(List<ItemData> salaryData, long employeeId) {
        this.salaryData = salaryData;
        this.salaryData.sort(Comparator.comparing(ItemData::getItemId));
        this.employeeId = employeeId;
    }

    public EmployeeSalaryDataVO() {
    }

    public List<ItemData> getSalaryData() {
        return salaryData;
    }

    public void setSalaryData(List<ItemData> salaryData) {
        this.salaryData = salaryData;
    }

    public long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(long employeeId) {
        this.employeeId = employeeId;
    }
}
